include ../../makefile.neiku

DIY_INC =

DIY_LIB =

VPATH =

OUTPUT = libjsoncpp.a

PREFIX = /opt/jsoncpp

LIBJSONCPP_A_OBJS = jsoncpp.o

ALL: $(OUTPUT)

libjsoncpp.so: $(LIBJSONCPP_A_OBJS)
	g++ -fPIC -shared -o $@ $^ $(ALL_LIB)

libjsoncpp.a: $(LIBJSONCPP_A_OBJS)
	ar -r $@ $^

clean:
	rm -f $(OUTPUT) *.o *.a *.so

install: libjsoncpp.a
	mkdir -pv $(PREFIX)/include/jsoncpp $(PREFIX)/lib
	cp -v jsoncpp.h $(PREFIX)/include/jsoncpp
	cp -v ${OUTPUT}  $(PREFIX)/lib


